package b1.mobile.blackberry.dao;

import b1.mobile.blackberry.io.http.Serviceworker;
import b1.mobile.blackberry.io.http.Serviceworker.ServiceDelegate;

public abstract class CommonDAO implements ServiceDelegate {
	
	protected DataAccessDelegate _delegate;
	
	public CommonDAO(DataAccessDelegate delegate){
		_delegate = delegate;
	}
	
	public void onGetResult(Serviceworker worker) {
		if(worker.responseCode != 200){
			_delegate.onDataReady(worker, null);
		}
	}
}
